import React, { Component } from 'react';
import "../../styles/search/SearchHeader.css"
import { NavBar } from 'antd-mobile'
import { withRouter } from 'react-router-dom';
class SearchHeader extends Component {
    constructor(props) {
        super(props)
        this.state = {

        }
    }


    searchback(){
        this.props.history.goBack()
    }


    render() {
        return (
            // <div className='Search-Header'>
            //     <span>&lt;</span>
            //     <div className='title'>搜索</div>
            // </div>
            <NavBar onBack={() => { this.searchback() }}>
                搜索
            </NavBar>
        );
    }
}

export default withRouter(SearchHeader);